// MyFileDialog.cpp : implementation file
//

#include "stdafx.h"
#include "ECGWorkStation.h"
#include "MyFileDialog.h"
#include <dlgs.h>


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyFileDialog

IMPLEMENT_DYNAMIC(CMyFileDialog, CFileDialog)

CMyFileDialog::CMyFileDialog(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName,
		DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) :
		CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd)
{
}


BEGIN_MESSAGE_MAP(CMyFileDialog, CFileDialog)
	//{{AFX_MSG_MAP(CMyFileDialog)
	ON_WM_TIMER()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


BOOL CMyFileDialog::OnInitDialog() 
{
	CFileDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	//GetParent()->SetWindowText("Save As");
 	GetParent()->GetDlgItem(stc2)->SetWindowText("File type ");
	GetParent()->GetDlgItem(stc3)->SetWindowText("File name ");
	
	GetParent()->GetDlgItem(stc4)->SetWindowText("Path ");  
	            
	GetParent()->GetDlgItem(0x00000002)->SetWindowText("Cancel");
	SetTimer(10, 10, NULL);

	return TRUE;

}

void CMyFileDialog::OnTimer(UINT nIDEvent) 
{
	// TODO: Add your message handler code here and/or call default
 
	//pWnd->GetDlgItem(IDCANCEL)->SetWindowText("psh1 ");  //02
	KillTimer(10);

	GetParent()->GetDlgItem(0x00000001)->SetWindowText("OK");


 	 CFileDialog::OnTimer(nIDEvent);
}
